package com.wxmit.module.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description SysLoginInfo
 * @Author huangxiong
 * @Date 2022/7/13 14:12
 * @Version V1.0
 */
@Data
@TableName("sys_login_log")
public class SysLoginLog implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String userName;

    private Long userId;

    private String ipaddr;

    private String loginLocation;

    private String browser;

    private String os;

    /**
     *  登陆状态
     * @link BusinessStatus
     */
    private String status;

    private String msg;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date loginTime;


}
